package com.mocha.design;

public class Context {

    private CommonStretegy commonStretegy;

    public CommonStretegy getCommonStretegy() {
        return commonStretegy;
    }

    public void setCommonStretegy(CommonStretegy commonStretegy) {
        this.commonStretegy = commonStretegy;
    }

    public void op(CommonStrategyBean commonStrategyBean){
        commonStretegy.operate(commonStrategyBean);
    }


    public Context(CommonStretegy commonStretegy) {
        this.commonStretegy = commonStretegy;
    }


}
